Generating Web Service Operations on Custom Logic |
|
Before you begin this task:
The method implementation of custom logic should be available.
This option helps you to generate Web service operations on custom logic that was pre-built or is in use in some application. Such an option facilitates reusing the existing logic to generate Web service operations and expose them. You can also provide the logic while creating the Web service operations.
Alternatively, you can create custom classes in WS-AppServer, add methods to them, and generate Web service operations from the WS-AppServer Package editor for those classes. Both these ways result in a similar output.
- Select a starting point and click to create a Web service. The Web Service Wizard appears.
- Provide the necessary details to generate the custom Web service operations.
Note:
You need to enter details on couple of pages. Click Next to proceed to the subsequent page and continue until you complete entering information on the wizard. - Click Finish on the wizard. The Web Service Generation Wizard closes and the Web service containing the Web service interface and Web service operations is generated and placed under the specified project or folder.
- Open the (Web service operation) to which you want to add the logic. The Binding Operation window appears, displaying the name of the Web service operation on its title bar and in the Name field.
- Provide the method implementation in the Implementation text area and click .
- Close the Binding Operation window.
The custom Web service operation is created.
After you complete this task:
You must publish the generated Web service and its contents to the organization. For use at run time, attach the Web service interface to an appropriate Service.